package com.yingjie.yingjiekitchen.service.impl;


import com.yingjie.yingjiekitchen.mapper.FoodTypeMapper;
import com.yingjie.yingjiekitchen.model.FoodType;
import com.yingjie.yingjiekitchen.service.FoodTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

/**
* @author Administrator
* @description 针对表【food_type(菜品分类表)】的数据库操作Service实现
* @createDate 2025-03-04 15:18:40
*/
@Service
public class FoodTypeServiceImpl implements FoodTypeService{

    @Resource
    private FoodTypeMapper foodTypeMapper;
    @Override
    public int create(FoodType foodType) {
        return foodTypeMapper.create(foodType);
    }

    @Override
    public ArrayList<FoodType> getFoodTypeList(Integer kitchenId) {
        return foodTypeMapper.getFoodTypeList(kitchenId);
    }
}
